<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@include file="/page/common/public.jspf"%>
<script src="${path }/js/member/modifyToPartner.js?v=${v}"></script>
<script src="${path }/js/member/open.js?v=${v}"></script>
<script src="${path }/js/member/bindCard.js?v=${v}"></script>
<%
	String param_menuId = request.getParameter("type");
	String[] a_string = new String[] {"index", "wytz", "wyrz", "xxzx", "zllm", "aqbz","fwzx","about"};
	if (param_menuId == null || "".equals(param_menuId)) {
		param_menuId = "";
	} else {
		boolean flag = false;
		for (String s : a_string) {
			if (s.equals(param_menuId)) {
				flag = true;
			}
		}
		if (!flag) {
			param_menuId = "";
		}
	}
%>
<!--topBar-->
 <div class="topBar">
      <div class="pageCenter clear_both">
      	<div class="follow l">
	 	  <ul>
	 	  	<li><span class="r">理财热线：<m:xml key="page.service.tel"></m:xml>（工作日<m:xml key="page.service.time"></m:xml>）</span></li>
	 	  	<li><a class="follow-weibo"></a></li>
	 	  	<li><a class="follow-wechat"></a></li>
	 	  </ul>
	</div>
          <div class="topBarLink">
          		<c:if test="${empty usersession}"><!--未登陆  -->
	          		<a href="${path }/page/login/login.jsp ">登录</a>|
	          		<a href="${path }/page/register/step_one_register.jsp">免费注册</a>
	          	</c:if>
	          	<c:if test="${not empty usersession}"><!-- 已登陆 -->
					<li>
						欢迎您 ${usersession.user.userName } 
						<c:choose>
							<c:when test="${usersession.user.isEmailCheck eq 'YES' }">
								<c:if test="${not empty usersession.user.trustAccountId }">
									, 托管账号：${usersession.user.trustAccountId }
									<a href="javascript:void(0)" onclick="javascript:bindCard();">绑卡</a>
									<a href="javascript:void(0)" id="modifyToPartner">修改资料</a><s class="vertical_line"></s>
									<a href="<%=request.getContextPath()%>/memberCenter/toImprest.htm" class="red">充值</a>
									<a href="<%=request.getContextPath()%>/memberCenter/toDraw.htm" class="d_blue">提现</a>
								</c:if>
								<c:if test="${empty usersession.user.trustAccountId }">
									<a href="javascript:void(0)" class="red" onclick="javascript:to_open();">开通托管账户</a>
									<s class="vertical_line"></s>
								</c:if> 
								<a href="${path}/memberCenter/index.htm">用户中心</a>
							</c:when>
							<c:when test="${usersession.user.isEmailCheck eq 'NO' }">
								您的账户还未激活,
								<a href="<%=request.getContextPath()%>/toActive.htm?userId=${usersession.user.id}" class="red">点击激活</a>
							</c:when>
						</c:choose>
						<a href="${path }/refresh.htm">
							<img src="${path }/images/refresh.jpg" />
						</a> 
						<a href="${path }/loginout.htm ">退出</a><s class="vertical_line"></s>
					</li>
				</c:if>
          </div>
      </div>
  </div>
  <!--topBar-->
  
<!--menu-->

<div class="menu  logo_main_bor">
   	<div class="pageCenter wrap">
       	<a class="float_l" href="${path}/"><img src="${path }/images/logo.png" /></a>
           <div class="float_r">
               <ul class="menuUl">
                   <li <%=param_menuId.equals("index") ? "class=\"over\"" : ""%>><a href="${path}/index.htm">首 页</a></li>
                   <li <%=param_menuId.equals("wytz") ? "class=\"over\"" : ""%>><a href="${path}/borrowInfo/list.htm">我要投资</a></li>
                   <li <%=param_menuId.equals("wyrz") ? "class=\"over\"" : ""%>><a href="${path}/borrowInfo/toBorrow.htm">我要融资</a></li>
                   <li <%=param_menuId.equals("xxzx") ? "class=\"over\"" : ""%>><a href="${path}/article/articlelist.htm">信息中心</a></li>
                   <li <%=param_menuId.equals("zllm") ? "class=\"over\"" : ""%>><a href="${path}/bankProduct/index.htm">战略联盟</a></li>
                   <li <%=param_menuId.equals("aqbz") ? "class=\"over\"" : ""%>><a href="${path}/page/security/">安全保障</a></li>
                   <li <%=param_menuId.equals("fwzx") ? "class=\"over\"" : ""%>><a href="${path}/servicecenter.htm?type=business">服务中心</a></li>
                   <li <%=param_menuId.equals("about") ? "class=\"over\"" : ""%>><a href="${path}/page/aboutus/">关于我们</a></li>
                   <!-- <li><a href="${path}/project/list.htm">找项目</a></li> -->
               </ul>
           </div>
           <div class="clear_both"></div>
       </div>
</div>

<!--menu-->

<script>
$(document).ready(function(e) {	    
		 //判断是否滚动 s
		if($('body').hasClass("left_menu_gundong")){
		}
		else{
			$(window).scroll(function() {
				if($(window).scrollTop() >  $("#nav_menu").height()+10){
					$("#nav_menu").addClass("scoll_nav")
				}else{
					$("#nav_menu").removeClass("scoll_nav")
				}
			});
		}
	//判断是否滚动 e
})
</script>
